package com.lyw.forum.pojo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lyw.forum.pojo.response.BoardSelectResponse;
import com.lyw.forum.pojo.response.UserSelectResponse;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_article")
public class Article {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer boardId;
    private Integer userId;
    private String title;
    private Integer visitCount;
    private Integer replyCount;
    private Integer likeCount;
    private Byte state;
    private Byte deleteState;
    private Date createTime;
    private Date updateTime;
    private String content;
    @TableField(exist = false)
    private UserSelectResponse user;
    @TableField(exist = false)
    private BoardSelectResponse board;

}